import request from '@/utils/request'

// 查询片单版权列表
export function listCopyright(query) {
  return request({
    url: '/play/copyright/list',
    method: 'get',
    params: query
  })
}

// 查询片单版权详细
export function getCopyright(id) {
  return request({
    url: '/play/copyright/' + id,
    method: 'get'
  })
}

// 新增片单版权
export function addCopyright(data) {
  return request({
    url: '/play/copyright',
    method: 'post',
    data: data
  })
}

// 修改片单版权
export function updateCopyright(data) {
  return request({
    url: '/play/copyright',
    method: 'put',
    data: data
  })
}

// 删除片单版权
export function delCopyright(id) {
  return request({
    url: '/play/copyright/' + id,
    method: 'delete'
  })

}


// 下载片单搬去哪
export function downLoadCopyright(id) {
  return request({
    url: '/play/copyright/download' + id,
    method: 'post'
  })
}

// 获取频道管理员列表
export function getChannelAdminList() {
  return request({
    url: '/system/user/channelAdminList',
    method: 'get'
  })
}

// 查询片单列表
export function getAllList(query) {
  return request({
    url: '/play/all/all',
    method: 'get',
    params: query
  })
}
